
Page({
    data: {
        name:null,
        comP1:{
            img1:'http://qn.shebeib.com/0259b4f5493964022bebabb858d3e08.png',
            imgList:[
                    'http://qn.shebeib.com/311ca74cf476b48aeb3e4b4937b4434.jpg',
                    'http://qn.shebeib.com/d85bccc89b09d0474b1591cb2239ea8.jpg',
                    'http://qn.shebeib.com/4054914b06b284df138988c0b3b4a59.jpg',
                    'http://qn.shebeib.com/01d92535be0f21b8fc323562ba738ba.jpg',
                    'http://qn.shebeib.com/8690268be3948c6e1514876bdd8067a.jpg',
                    'http://qn.shebeib.com/8690268be3948c6e1514876bdd8067a.jpg',  
                    'http://qn.shebeib.com/9ed4fd536d0f3642a007b734b95072e.jpg',
                    'http://qn.shebeib.com/b41d0d4588aa26bccc8cc606db29738.jpg',
                    'http://qn.shebeib.com/c6bb466f13eb3ea136a1775ab94b9a0.jpg',
                    'http://qn.shebeib.com/7282ac69f74289f4b77c7cbf724f372.jpg',
                    ],
            member:{
                name:'汤经理',
                phone:"13632094587"
            }
        },
        comP2:{
            img1:'http://qn.shebeib.com/hnbms.jpg',
            imgList:[
                    'http://qn.shebeib.com/065dce0168fb890d73b416764fc2c72.jpg',
                    'http://qn.shebeib.com/0b4103afa859f6344687e42524460de.jpg',
                    'http://qn.shebeib.com/81cfbb8cfd255a2ecf6e4af3f9c481d.jpg',
                    'http://qn.shebeib.com/7fe2be8eb406d8675b56b9e2f3988c4.jpg',
                    'http://qn.shebeib.com/a70d978e469fcf4518a3e2d513b2b7a.jpg',
                    'http://qn.shebeib.com/dc02f166e214fb366e581e88fc119a5.jpg',
                    'http://qn.shebeib.com/4777cd293b548f01c0ccac64738c62f.jpg',
                    'http://qn.shebeib.com/80a884df0979dff5358f6fbcc96d84c.jpg',
                    'http://qn.shebeib.com/23035f3d64cd1916eb343de4f93c5a8.jpg',
                    'http://qn.shebeib.com/29dadc43cc99931953bf44187a5da81.jpg',
                    'http://qn.shebeib.com/a8c42ec9cab435f056975b3fbf2d5ab.jpg',
                    ],
            member:{
                name:'关经理',
                phone:"13521907786"
            }
        },
        comP3:{
            img1:'http://qn.shebeib.com/5cd6aae946391e4456f254f6e7de434.jpg',
            imgList:[
                    'http://qn.shebeib.com/1194061e3b64e4018c98de1049541a8.jpg',
                    'http://qn.shebeib.com/a156dce0ab0952014dcf300c5b3e03b.jpg',
                    'http://qn.shebeib.com/106a54ebececbe9d293e934392b933d.jpg',
                    'http://qn.shebeib.com/3469afca2dec036351228521c0f50fa.jpg',
                    'http://qn.shebeib.com/f2f343ff24fb8ea1a57d6a044e2430b.jpg',
                    'http://qn.shebeib.com/c7029dd41340344a48ff85b3ca75ebf.jpg',
                    'http://qn.shebeib.com/c9db51f2b04f6f68d4827fffe8dc99a.jpg',
                    'http://qn.shebeib.com/8ba849b3fa4ef0aee25dd67702b57d3.jpg',
                    'http://qn.shebeib.com/3036a1fa61d3ec734ec5588eb3820db.jpg',
                    'http://qn.shebeib.com/cc6a0325ed5b07da7d22e1b23128f2d.jpg',
                    ],
            member:{
                name:'李经理',
                phone:"15616881314"
            }
        },
        comP4:{
            img1:'http://qn.shebeib.com/1a7a44cb925c90c406ac34dfe2f1544.png',
            imgList:[
                    'http://qn.shebeib.com/555972e98cdfecb23224d8e1ada4c27.jpg',
                    'http://qn.shebeib.com/1f9fda58291a38fcbf295451097ed02.jpg',
                    'http://qn.shebeib.com/e91eb646e7ab06947b4971b0ecae266.jpg',
                    'http://qn.shebeib.com/d2b13cae6b055d91b2532348ce97118.jpg',
                    'http://qn.shebeib.com/67e07899feb41f6451bb77e2c9b8183.jpg',
                    'http://qn.shebeib.com/cc4bb9bb90f8a22fc0851c73dedb504.jpg',
                    'http://qn.shebeib.com/afb5fdbc4638c18447d1069053103c6.jpg',
                    'http://qn.shebeib.com/7dea7a5a574691800e75f01863bf1c4.jpg',
                    'http://qn.shebeib.com/33e7462a5fd7f7b4065878cc1a2ad0b.jpg',
                    'http://qn.shebeib.com/bd4d846b8dd2e597bd09d1468855055.jpg',
                    ],
            member:{
                name:'金经理',
                phone:"13911300882"
            }
        },
        comP5:{
            img1:'http://qn.shebeib.com/hongshuojianjie.png',
            imgList:[
                    'http://qn.shebeib.com/76cdb8be28f2af91dc8b14f904c6aef6_.jpg',
                    'http://qn.shebeib.com/d9fa653593e0c25bed2bd29ab6d9fd45_.jpg',
                    'http://qn.shebeib.com/d26770168ec814a2491db1df7270705b_.jpg',
                    'http://qn.shebeib.com/890e53412804dd70dd24fe2d9ab74921_.jpg',
                    'http://qn.shebeib.com/0c755f4ec823455bf44f1fc357a0d8c9_.jpg',
                    'http://qn.shebeib.com/29448e5717d010cfe1c43389d6d1d4a2_.jpg',
                    'http://qn.shebeib.com/5f29484fa0d50c38faef042f0b118d7c_.jpg',
                    'http://qn.shebeib.com/5b5c64d35cc7e781f6760e9bf461678e_.jpg',
                    'http://qn.shebeib.com/ba0fe7dc1067fc798683b7dbbcd8584e_.jpg',
                    ],
            member:{
                name:'龚经理',
                phone:"15870655251"
            }
        },
        comP6:{
            img1:'http://qn.shebeib.com/jiangsusurong.jpg',
            imgList:[
                    'http://qn.shebeib.com/977b27c507a091018028b943902bedb.jpg',
                    'http://qn.shebeib.com/4b3ad6cc59b582abbb22145fb9e2491.jpg',
                    'http://qn.shebeib.com/bad1b7ad7bdb9c98c27e58a99f53d93.jpg',
                    'http://qn.shebeib.com/06bfb2bc145828007bffa17d7d4e9a2.jpg',
                    'http://qn.shebeib.com/0ac844e79a23760a45fa36f9b2c02d7.jpg',
                    'http://qn.shebeib.com/abeceef1c7035787a4b875a32abca21.jpg',
                    'http://qn.shebeib.com/88f9a637852260d704581e35de680b0.jpg',
                    'http://qn.shebeib.com/166ad5646b4dafe12ce4250358f50ce.jpg',
                    'http://qn.shebeib.com/031b4b0cb5ea600cee49b8945ad87cd.jpg',
                    'http://qn.shebeib.com/74dea7f89c629cdcbd09aa4ae296af4.jpg',
                    ],
            member:{
                name:'周经理',
                phone:"15083814517"
            }
        },
        comP7:{
            img1:'http://qn.shebeib.com/shandongzeyu.jpg',
            imgList:[
                    'http://qn.shebeib.com/0a17ff62adaee6a0a252a255b919084.jpg',
                    'http://qn.shebeib.com/e7b12b465197ac25739f8221ba70666.jpg',
                    'http://qn.shebeib.com/38fecc0fd53a31b49793801ed11e060.jpg',
                    'http://qn.shebeib.com/b4e4b402c5024e2af35bccca505181d.jpg',
                    'http://qn.shebeib.com/ecf34b14b1011c116d04c028c4ae55d.jpg',
                    'http://qn.shebeib.com/ad4384c0a44886506ea9f9f0918ea2f.jpg',
                    'http://qn.shebeib.com/bd7a792f42d117539d57f26fff80b67.jpg',
                    'http://qn.shebeib.com/b2fa32e2b79d18d635d50f1c2a9c904.jpg'
                    ],
            member:{
                name:'谢经理',
                phone:"17720651820"
            }
        },
        comP8:{
            img1:'http://qn.shebeib.com/linqingjianji.jpg',
            topUrl:'',
            imgList:[
                    'http://qn.shebeib.com/a3a49b53eaa3b19bf8656ef973a49b0.jpg',
                    'http://qn.shebeib.com/72d3de865dd14c47512e14cb891679f.jpg',
                    'http://qn.shebeib.com/43ecc8a17b5eca8f57326ecd5993440.jpg',
                    'http://qn.shebeib.com/d1c0fedc9bc735ad77775954f4e6b38.jpg',
                    'http://qn.shebeib.com/3a2d2f70ac09c2daef3ac3683f0d03d.jpg',
                    'http://qn.shebeib.com/c256759110fdf16f96f7f2e8bc8c707.jpg',
                    'http://qn.shebeib.com/516fdb8b4f70cd8e272512717c390ec.jpg'
                    ],
            member:{
                name:'谢经理',
                phone:"17720651820"
            }
        },
        comP9:{
            img1:'http://qn.shebeib.com/55964df5d2896d8681d7ee07d269507.jpg',
            topUrl:'http://qn.shebeib.com/c4b1299a616c842112950e0551b8d23.jpg',
            imgList:[
                    'http://qn.shebeib.com/29970688d57a4d3abf45f152e695981.jpg',
                    'http://qn.shebeib.com/4b7ad4baa836b1726c462866a955099.jpg',
                    'http://qn.shebeib.com/64110452aca0065ecb786045b48ed00.jpg',
                    'http://qn.shebeib.com/8f2d9db61221159191bfef5ce8e8c78.jpg',
                    'http://qn.shebeib.com/a0b02e264ae95b99688f811e9af0d6a.jpg',
                    'http://qn.shebeib.com/48a137559f6029ff8c8095ee5f4fffc.jpg',
                    'http://qn.shebeib.com/4b5da9d6c2a78d02484368fa5079581.jpg'
                    ],
            member:{
                name:'刘经理',
                phone:"15377097719"
            }
        },
        comP10:{
            img1:'http://qn.shebeib.com/d9e64e1d6c4d8bca7fcc4e74ff4ec21.jpg',
            topUrl:'http://qn.shebeib.com/78d6b172a6f4881591372b4d76f0828.jpg',
            imgList:[
                    'http://qn.shebeib.com/5c91173eda7bec643c125ce5756764a.jpg',
                    'http://qn.shebeib.com/50f97c98e8c17c39de2e3d58c541a91.jpg',
                    'http://qn.shebeib.com/95b7ec4c7b7de2246a164be5a0988be.jpg',
                    'http://qn.shebeib.com/2669fd8773748b15ee826b571baa180.jpg',
                    'http://qn.shebeib.com/aac6669a6cdc5ff5d8c0c74dfc49fdc.jpg',
                    'http://qn.shebeib.com/b28bcb6d5e45ac837098d056441cfa5.jpg',
                    'http://qn.shebeib.com/d659bf504fb5674a54dab8de5dca7d8.jpg',
                    'http://qn.shebeib.com/dd9e081e1170cb8aa5066c3b09ae16f.jpg',
                    'http://qn.shebeib.com/dea6c330be587d35a181fb00662618b.jpg',
                    'http://qn.shebeib.com/fe2a28474014dde91b5f62e69176d06.jpg'
                    ],
            member:{
                name:'陈经理',
                phone:"19951525185"
            }
        },
        comP11:{
            img1:'http://qn.shebeib.com/huaxiazhonggonggongsijianjie.jpg',

            imgList:[
                    'http://qn.shebeib.com/201911081557323.jpg',
                    'http://qn.shebeib.com/201911081557322.jpg',
                    'http://qn.shebeib.com/201911081557325.jpg',
                    'http://qn.shebeib.com/201911081557321.jpg',
                    'http://qn.shebeib.com/201911081557326.jpg',
                    'http://qn.shebeib.com/201911081557324.jpg',
                    'http://qn.shebeib.com/20191108155732.jpg',
                    'http://qn.shebeib.com/201911081557327.jpg'
                    ],
            member:{
                name:'谭经理',
                phone:"13361701941"
            }
        },
        showCompony:null,
        hide:false
        
    },
    onLoad:function(op){
        console.log('op************')
        console.log(op)
        this.setData({
            name:op.name
        })
        if (op.type==1) {
            this.setData({
                hide:true
            })
        }
        if (op.name==1) {
            wx.setNavigationBarTitle({
              title: '南方重工'
            })
            this.setData({
                showCompony:this.data.comP1,
                title:'南方重工'
            })
        }else if(op.name==2){
            wx.setNavigationBarTitle({
              title: '湖南博弥顺'
            })
            this.setData({
                showCompony:this.data.comP2,
                title: '湖南博弥顺'
            })
        }
        else if(op.name==3){
            wx.setNavigationBarTitle({
              title: '品驰机械'
            })
            this.setData({
                showCompony:this.data.comP3,
                 title: '品驰机械'
            })
        }
        else if(op.name==4){
            wx.setNavigationBarTitle({
              title: '圣云机械'
            })
            this.setData({
                showCompony:this.data.comP4,
                 title: '圣云机械'
            })
        }
        else if(op.name==5){
            wx.setNavigationBarTitle({
              title: '鸿硕重工'
            })
            this.setData({
                showCompony:this.data.comP5,
                 title: '鸿硕重工'
            })
        }
        else if(op.name==6){
            wx.setNavigationBarTitle({
              title: '江苏苏升'
            })
            this.setData({
                showCompony:this.data.comP6,
                 title: '江苏苏升'
            })
        }
        else if(op.name==7){
            wx.setNavigationBarTitle({
              title: '泽宇建机'
            })
            this.setData({
                showCompony:this.data.comP7,
                 title: '泽宇建机'
            })
        }
        else if(op.name==8){
            wx.setNavigationBarTitle({
              title: '临清建机'
            })
            this.setData({
                showCompony:this.data.comP8,
                 title: '临清建机'
            })
        }
        else if(op.name==9){
            wx.setNavigationBarTitle({
              title: '湖北江汉'
            })
            this.setData({
                showCompony:this.data.comP9,
                 title: '湖北江汉'
            })
        }
        else if(op.name==10){
            wx.setNavigationBarTitle({
              title: '江苏中宝龙'
            })
            this.setData({
                showCompony:this.data.comP10,
                 title: '江苏中宝龙'
            })
        }
        else if(op.name==11){
            wx.setNavigationBarTitle({
              title: '华夏重工'
            })
            this.setData({
                showCompony:this.data.comP11,
                 title: '华夏重工'
            })
        }
        
       
    },
    onShow:function(){
        // wx.getStorage({
        //     key: 'openId',
        //     success: function(res) {
        //         console.log("fff",res)
        //        if(!res){
        //         wx.reLaunch({
        //             url: '../login/login'
        //           })
        //        }
        //     },
        //     fail:function(){
        //         wx.reLaunch({
        //             url: '../login/login'
        //           })
        //     }
        //   })
    },
    moreEredarClick () { // 更多达人
        wx.navigateTo({
            url: '/pages/eredar/eredar'
        })
    },
    eredarClick () { // 达人详情
        wx.navigateTo({
            url: '/pages/eredarDetail/eredarDetail'
        })
    },callPhone:function(e){
        console.log(12323)
        var phone=e.currentTarget.dataset.code
        wx.makePhoneCall({
          phoneNumber: phone //仅为示例，并非真实的电话号码
        })
    },
    turnPage:function(e){
      

           wx.switchTab({
                  url: '../../pages/home/home?type=1'
           })
       
       
  
    },
    turnDetail:function(){
       wx.navigateTo({
        url: '/pages/webView/webView?id='+this.data.showCompony.img1
      })
    },
     onShareAppMessage:function(){
         return {
              title: '塔塔机械合作伙伴，'+this.data.title,
              path: 'pages/componyDetail2/componyDetail?name='+this.data.name
            }
    
    },
    onShareTimeline:function(){
         return {
              title: '塔塔机械合作伙伴，'+this.data.title,
              path: 'pages/componyDetail2/componyDetail?name='+this.data.name
            }
    
    }
   
});